package com.hmall.mapper;

import com.hmall.model.MallAdvert;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MallAdvertMapper extends MyMapper<MallAdvert> {
    List<MallAdvert> listAdvert(@Param(value = "advertCount") int advertCount);

    List<MallAdvert> listHomeAdvert(@Param("advertCount") int advertCount, @Param("flag") int i);

    List<MallAdvert> listMeAdvert(@Param("advertCount") int advertCount, @Param("flag") int i);
}